home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr33 / input22.zip / TRYINPUT.BAT < prev    next >
DOS Batch File  |  1992-05-01  |  1KB  |  32 lines

  1. echo off
  2. rem This file tests the use of the INPUT.EXE program
  3. :start
  4. INPUT "Press one of the following keys:  2 @ r = q R Ctrl-J ESC"
  5. if errorlevel 115 goto error
  6. if errorlevel 114 echo You pressed the lower-case r key 
  7. if errorlevel 114 goto end
  8. if errorlevel 113 echo You pressed the q key
  9. if errorlevel 113 goto end
  10. if errorlevel 83 goto error
  11. if errorlevel 82 echo You pressed the upper-case R key
  12. if errorlevel 82 goto end
  13. if errorlevel 65 goto error
  14. if errorlevel 64 echo You pressed the @ key
  15. if errorlevel 64 goto end
  16. if errorlevel 62 goto errro
  17. if errorlevel 61 echo You pressed the = key
  18. if errorlevel 61 goto end
  19. if errorlevel 51 goto errro
  20. if errorlevel 50 echo You pressed the 2 key
  21. if errorlevel 50 goto end
  22. if errorlevel 28 goto errro
  23. if errorlevel 27 echo You pressed the ESC key
  24. if errorlevel 27 goto end
  25. if errorlevel 11 goto error
  26. if errorlevel 10 echo You pressed the Ctrl-J key
  27. if errorlevel 10 goto end
  28. :error
  29. echo If you did not follow instructions and press one of the keys shown,
  30. echo this demonstration will not work properly!
  31. :end
  32.